<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>京东首页</title>	
	<link rel="stylesheet" href="./css/head.css"  type="text/css" />
</head>
<body>
<!-- 最顶部的可关闭广告 -->
<!-- <div id='top_ad'><img src="./images/top_ad.jpg" alt="" /></div> -->
<!-- 最顶部的可关闭广告结束-->
<!-- 头部灰色区域 -->
	<div id="top">
		<div class="top_main">
			<!-- 左侧 -->
			<div class="top_l fl">
				<p class="didian"><span class='tu fl'></span><span class='wenzi fl'>北京</span> </p>
			</div>
			<!-- 左侧结束 -->
			<!-- 右侧 -->
			<div class="top_r fr ">
				<ul>
<!-- 头部记录用户是否已经登录开始 -->
			<if value="$_SESSION['user']">
					<li><span class='fl'>您好，</span>
						<span>{$_SESSION['user']['uname']}！</span>
						<a href="{|U:'user/out'}">退出</a>
					</li>
				<else>
					<li><span class='fl'>您好，欢迎来到京东！</span>
						<a href="{|U:'user/login',array('main'=>1)}" class='fl'>[登录]</a> <a href="{|U:'user/reg',array('main'=>1)}" class="denglu fl">[免费注册]</a> <span class='xian fl'>|</span>
					</li>
			</if>
					<li><a href="{|U:'Member/index'}" class="dingdan fl">我的订单</a><span class='xian fl'>|</span></li>
<!-- 头部记录用户是否已经登录结束 -->
				</ul>
			</div>
			<!-- 右侧结束 -->
		</div>
	</div>
<!-- 头部灰色区域结束 -->
<!-- 中间主体区域 -->
	


